<template>
  <el-card>
    <div class="df kindbox">
      <div>商品分类</div>
      <el-button type="primary">添加分类</el-button>
    </div>
    <el-table :data="tableData3">
      <el-table-column prop="id" label="序号" width="120"> </el-table-column>
      <el-table-column prop="kind" label="分类名称" width="120">
      </el-table-column>
      <el-table-column prop="date" label="是否启用" show-overflow-tooltip>
        <el-switch
          v-model="value2"
          active-color="#13ce66"
          inactive-color="#ff4949"
          @click="value2=value1"
        >
        </el-switch>
      </el-table-column>
      <el-table-column label="操作">
        <template slot-scope="scope">
          <el-button size="mini" @click="handleEdit(scope.$index, scope.row)"
            >编辑</el-button
          >
          <el-button
            size="mini"
            type="danger"
            @click="handleDelete(scope.$index, scope.row)"
            >删除</el-button
          >
        </template>
      </el-table-column>
    </el-table>
    <el-pagination
      class="mt20"
      background
      :current-page="currentPage4"
      :page-sizes="[100, 200, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="400"
    >
    </el-pagination>
  </el-card>
</template>

<script>
export default {
  data() {
    return {
      value1: true,
      value2: true,
      tableData3: [
        {
          kind: "特色粥品",
          id: "12987122",
        },
        {
          kind: "特色粥品",
          id: "12987122",
        },
        {
         kind: "特色粥品",
          id: "12987122",
        },
        {
         kind: "特色粥品",
          id: "12987122",
        },
        {
        kind: "特色粥品",
          id: "12987122",
        },
        {
         kind: "特色粥品",
          id: "12987122",
        },
        {
         kind: "特色粥品",
          id: "12987122",
        },
      ],
      multipleSelection: [],
      currentPage1: 5,
      currentPage2: 5,
      currentPage3: 5,
      currentPage4: 4,
    };
  },

  methods: {},
};
</script>

<style lang="scss" scoped>
.kindbox {
  height: 36px;
  line-height: 36px;
  justify-content: space-between;
}
</style>